export interface CreateRequestData {
  username: string
  password: string
  nickname: string
  status: number
  role_ids: number
  phone: number
}

export interface UpdateRequestData {
  id: number
  username: string
  nickname: string
  status: number
  role_ids: number
  phone: number
}
export interface passwordEditRequestData {
  password: string
  new_password: string
}
export interface DeleteRequestData {
  id: number
}

export interface GetTableRequestData {
  /** 当前页码 */
  pageNum: number
  /** 查询条数 */
  pageSize: number
  /** 查询参数：用户名 */
  username?: string
  /** 查询参数：手机号 */
  phone?: string
}
export interface GetDetailRequestData {
  id: number
}

export interface GetTableData {
  create_time: string
  id: string
  phone: string
  roles: string
  status: boolean
  username: string
}

// 返回值
export type GetTableResponseData = ApiResponseData<{
  data: GetTableData[]
  total: number
}>
export type GetDetailResponseData = ApiResponseData<{
  create_time: string
  id: string
  phone: string
  roles: string
  status: boolean
  username: string
}>
export type UpdateResponseData = ApiResponseData<{
  id: number
  username: string
  nickname: string
  status: number
  role_ids: number
  phone: number
}>
export type passwordEditResponseData = ApiResponseData<{
  message: string
}>
